package com.zhaokuner.dubbo.provider.ctrl;

import com.zhaokuner.dubbo.service.TestService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * Description:TODO 详细描述
 * <p>
 * Copyright: 2018-现在 北京掌通未来科技有限公司
 * <p>
 *
 * @author 赵希坤 zhaoxikun
 * @date 2020/6/22 09:28
 */
@RestController
@RequestMapping("test")
@Log4j2
public class TestCtrl {

    @Autowired
    private TestService testService;

    @RequestMapping
    public Object test(){
            Thread ss = Thread.currentThread();
            log.info(ss.getName());
            log.info("qqqq");

        return testService.sayHello("ctrl");
    }

}
